<html>
<head>
<script type="text/javascript" src="/static/home/js/jquery-3.2.1.min.js"></script>
</head>
<body>

<form action="{:url('Upfild/addfiled')}" enctype="multipart/form-data" method="post">
<input type="file" id="img" name="image" /> <br> 
<input type="button" id="sc" value="上传" /> 
</form> 
<script>
$("#sc").click(
function()
{
var m =$("#img").val();
alert(m);
}
);
</script>
</body>
</html>